package com.seagox.desk.config;

import com.seagox.desk.remote.entity.BaseUser;
import com.seagox.desk.remote.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class StartupRunner implements CommandLineRunner {

	@Autowired
    private UserMapper userMapper;

    @Override
    public void run(String... args) throws Exception {
        BaseUser user = new BaseUser();
        user.setStatus(0);
        userMapper.update(user, null);
    }
    

}
